# -*- coding: utf-8 -*-
# function 为 docker  compose 编写的一个简单应用
# __author__ = 'yeslf'

import bottle, commands
from bottle import  route ,run, template

@route('/')
@route('')
def index():
    hosname=commands.getoutput('hostname')
    return template('<h1>This Hosname is  {{hosname}}</h1>',hosname=hosname)

run(host='0.0.0.0',port=8080,debug=True,reloader=True)